import React from 'react'
import {
    Content
} from 'native-base'
import { connect } from 'dva-no-router'


@connect(({ loading }) => ({ loading: loading.global && !loading.models.Verify }))
class MyContent extends React.Component {

    render() {
        const { loading } = this.props
        return (
            <Content {...this.props}>
                {loading ? null : this.props.children}
            </Content>
        )
    }
}

export default MyContent
